Release 10.1A: OpenEdge Development:
Progress 4GL Reference


BASE64-ENCODE function

Converts binary data into a Base64 character string, and returns a LONGCHAR containing the character data. The resulting LONGCHAR is in the code page specified by -cpinternal.

Syntax

BASE64-ENCODE ( expression ) 

expression

A MEMPTR or RAW expression containing the binary data you want to convert.

Example

Following is an example using the BASE64-ENCODE function:

DEF VAR encdmptr AS MEMPTR.
DEF VAR encdlngc AS LONGCHAR.

COPY-LOB FROM FILE "C:\myicons\test.ico" TO encdmptr.
encdlngc = BASE64-ENCODE(encdmptr).
COPY-LOB FROM encdlngc TO FILE "C:\myicons\testencode". 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095